//
//  QLPublishSelectPayTypeVC.m
//  神约
//
//  Created by qlwl on 17/2/9.
//  Copyright © 2017年 qlwl. All rights reserved.
//

#import "QLPublishSelectPayTypeVC.h"
#import "QLPublishLifeInvitatVC.h"

@interface QLPublishSelectPayTypeVC ()
@property (weak, nonatomic) IBOutlet UIButton *payBtn;
@property (weak, nonatomic) IBOutlet UIButton *notPayBtn;

@end

@implementation QLPublishSelectPayTypeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _notPayBtn.selected = YES;
    _notPayBtn.userInteractionEnabled = NO;
}
- (IBAction)payBtnClick:(id)sender {
    _payBtn.selected = YES;
    _payBtn.userInteractionEnabled = NO;
    _notPayBtn.selected = NO;
    _notPayBtn.userInteractionEnabled = YES;
}
- (IBAction)notPayBtnClick:(id)sender {
    _notPayBtn.selected = YES ;
    _notPayBtn.userInteractionEnabled = NO;
    _payBtn.selected = NO;
    _payBtn.userInteractionEnabled = YES;
}


- (IBAction)nextBtnClick:(id)sender {
    //调到下一页
    QLPublishLifeInvitatVC * invitatVC = [NSString instantiateViewControllerWithIdentifier:@"QLPublishLifeInvitatVC" andSBName:@"Home"];
    if (_payBtn.selected) {
        invitatVC.isPay = YES;
    }else {
        invitatVC.isPay = NO;
    }
    invitatVC.classifyId = self.classifyId;
    invitatVC.name = self.name;
    [self.navigationController pushViewController:invitatVC animated:YES];
}


@end
